
import {axios,get,post} from "./request.js"


export const ajax = {
    apiTest:(params)=>get("/api/test",params),
    apiLogin:(params)=>post("/api/login",params),
    register:params=>post("/api/register",params),
    getHot:()=>get("/api/gethot"),
    getavatar:(params)=>post("/api/uploadfile",params),
    Addhomehot:(params)=>post("/api/homehot",params),
    get:(params)=>post("/api/gethot")
}